<?php require('connections/con_gl.php'); ?>
<?php
cekAkses($_SESSION[akses],"L-6");
// -- get customer
mysql_select_db($database_con_gl, $con_gl);
$query_kontak = "SELECT id, nama, type, tcustomer, status FROM gl_kontak where gl_kontak.type ='Customer' AND status='AKTIF' ORDER BY type, nama ASC";
$kontak = mysql_query($query_kontak, $con_gl) or die(mysql_error());
$row_kontak = mysql_fetch_assoc($kontak);
$totalRows_kontak = mysql_num_rows($kontak);
// get paket
mysql_select_db($database_con_gl, $con_gl);
$query_kelom = "SELECT id, kelompok FROM gl_kelompok where jual=1 AND jenis=2 ORDER BY kelompok ASC";
$kelom = mysql_query($query_kelom, $con_gl) or die(mysql_error());
$row_kelom = mysql_fetch_assoc($kelom);
$totalRows_kelom = mysql_num_rows($kelom);
// --- lokasi kantor
mysql_select_db($database_con_gl, $con_gl);
$query_gudang = "SELECT id, gudang FROM gl_gudang";
if(!strstr($_SESSION[akses],'A-1-4')) {
	$query_gudang .= " where id='$_SESSION[lokasi]'";
}
$query_gudang .=" ORDER BY gudang ASC";
$gudang = mysql_query($query_gudang, $con_gl) or die(mysql_error());
$row_gudang = mysql_fetch_assoc($gudang);
$totalRows_gudang = mysql_num_rows($gudang);
// default akun
mysql_select_db($database_con_gl, $con_gl);
$query_def_ak = "SELECT gl_company.a_piu, gl_company.a_kas, gl_company.a_beb, gl_company.a_paj FROM gl_company";
$def_ak = mysql_query($query_def_ak, $con_gl) or die(mysql_error());
$row_def_ak = mysql_fetch_assoc($def_ak);
$totalRows_def_ak = mysql_num_rows($def_ak);
// salesman
mysql_select_db($database_con_gl, $con_gl);
$query_salesmen = "SELECT gl_kontak.id, gl_kontak.nama FROM gl_kontak WHERE gl_kontak.type='Karyawan' AND gl_kontak.tkaryawan='sales' order by nama";
$salesmen = mysql_query($query_salesmen, $con_gl) or die(mysql_error());
$row_salesmen = mysql_fetch_assoc($salesmen);
$totalRows_salesmen = mysql_num_rows($salesmen);
?>
<link href="ccss/ui.datepicker.css" type="text/css" rel="stylesheet" />
<style>
#cusinfo tr td {
	font-size:10px;	
}
</style>
<script type="text/javascript" src="js/ui.datepicker.js"></script>
<script type="text/javascript">
<!--
$(function()
      {
        $('.calendar').datepicker({
            appendText : "",
            dateFormat : 'yy/mm/dd'
          });
      });
	  
</script>
<script type="text/javascript" src="js/ajax_data.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	$().ajaxStart(function() {
		$('#loading').show();
		$('#result').hide();
	}).ajaxStop(function() {
		$('#loading').hide();
		$('#result').fadeIn('slow');
	});

	$('#add').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#result').html(data);
			}
		})
		return false;
	});
  $('#result').click(function(){
  $(this).hide();
  });
})
</script>
<div id="loading" style="display:none;"><img src="images/loading.gif" alt="loading..." /></div>
<div id="result" style="display:none;"></div>
<h1>Tambah Transaksi Order</h1>
<div id="divDetail"><table width="100%" border="0" cellspacing="0" cellpadding="4" class="datatable" id="cusinfo">
  <tr>
    <th colspan="4" align="center">INFORMASI PELANGGAN</th>
  </tr>
  <tr>
    <td align="right" valign="top" style="background:#FFF;"><div align="left">INFO PEMESAN </div></td>
    <td width="38%" valign="top" style="background:#FFF;">&nbsp;</td>
    <td width="16%" valign="top" style="background:#FFF;">INFO PENJAMIN </td>
    <td width="31%" valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="top" style="background:#FFF;">NPWP :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td width="16%" align="right" valign="top" style="background:#FFF;">Nama :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
  <tr>
    <td width="15%" align="right" valign="top" style="background:#FFF;">Nama :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td align="right" valign="top" style="background:#FFF;">Alamat :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="top" style="background:#FFF;">Alamat :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td align="right" valign="top" style="background:#FFF;">No. Tlp :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="top" style="background:#FFF;">No. Tlp :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td align="right" valign="top" style="background:#FFF;">Jabatan : </td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="top" style="background:#FFF;">Email :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" valign="top" style="background:#FFF;">Keterangan :</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
    <td valign="top" style="background:#FFF;">&nbsp;</td>
  </tr>
</table>
</div>
<form action="proses/sretail.php?act=add" method="POST" name="add" id="add" >
  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="datatable">
    <tr>
      <th colspan="2">Tanggal Reservasi </th>
      <td bgcolor="#FFFFFF">&nbsp;</td>
      <th colspan="2">Rincian Biaya Sewa Kendaraan </th>
    </tr>
    <tr>
      <td width="15%" align="right" valign="top" bgcolor="#FFFFFF">No Order *: </td>
      <td width="38%" valign="top" bgcolor="#FFFFFF"><div id="refDiv">
        <label>
          <input name="noreferensi" type="text" id="noreferensi" value="SJ<?php echo time();?>" size="15" maxlength="20" onchange="cekReferensi(this.value);"/>
        </label>
      </div></td>
      <td width="1%" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td width="18%" align="right" valign="top"> Diskon 
        <label>
        <input name="diskon" type="text" id="diskon" onkeyup="javascript:var harga=document.getElementById('xharga').value;document.getElementById('hargasatuan').value=parseFloat(harga)-(harga * (this.value/100)) ;" value="0" size="2" maxlength="2" />
%</label>
- Harga Rp.: </td>
      <td width="28%" valign="top" bgcolor="#FFFFFF"><label></label>
      <label id="divHargaKendaraan">
      <input name="hargasatuan" type="text" id="hargasatuan" onchange="javascript:this.form.total.value=(this.form.jumlah.value * this.form.hargasatuan.value) - (this.form.jumlah.value * this.form.hargasatuan.value * this.form.diskon.value / 100);" value="0" size="20" maxlength="20"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right" valign="top" bgcolor="#FFFFFF">Tanggal Order *: </td>
      <td valign="top" bgcolor="#FFFFFF"><label>
        <input name="tanggal" type="text" class="calendar" id="tanggal" value="<?php echo date("Y/m/d");?>" size="15" maxlength="15"/>
      </label>
        &nbsp;JT :
        <label>
          <input name="jatuhtempo" type="text" class="calendar" id="jatuhtempo" value="<?php echo date("Y/m/d"); ?>" size="15" maxlength="15"/>
        </label></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">BBM Rp.: </td>
      <td bgcolor="#FFFFFF"><label id="divBBM">
        <input name="bbm" type="text" id="bbm" value="0" size="10" maxlength="10" onchange="javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right" valign="top" bgcolor="#FFFFFF">Lokasi Kantor :</td>
      <td valign="top" class="datatable"><select name="gudang" id="gudang" style="width:280px;">
        <?php

do {  

?>
        <option value="<?php echo $row_gudang['id']?>"><?php echo $row_gudang['gudang']?></option>
        <?php

} while ($row_gudang = mysql_fetch_assoc($gudang));

  $rows = mysql_num_rows($gudang);

  if($rows > 0) {

      mysql_data_seek($gudang, 0);

	  $row_gudang = mysql_fetch_assoc($gudang);

  }

?>
      </select></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">Tol  Rp.: </td>
      <td bgcolor="#FFFFFF"><label id="divTol">
        <input name="tol" type="text" id="tol" value="0" size="10" maxlength="10" onchange="javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td width="15%" align="right" valign="top" bgcolor="#FFFFFF">Customer *:</td>
      <td width="38%" valign="top" bgcolor="#FFFFFF"><label></label>
        <!--
		<label id="divKontak">
        <select name="dari" id="dari" onchange="setKeterangan(this.value);getDetailCustomer(this.value); alert(this.value);">
          <option value="" <?php if (!(strcmp("", $row_edit['kontak']))) {echo "selected=\"selected\"";} ?>>Pilih Customer</option>
          <?php
		do {  
		?>
		<option value="<?php echo $row_kontak['id']?>"><?php echo $row_kontak['nama']?></option>
		<?php
		} while ($row_kontak = mysql_fetch_assoc($kontak));
		  $rows = mysql_num_rows($kontak);
		  if($rows > 0) {
			  mysql_data_seek($kontak, 0);
			  $row_kontak = mysql_fetch_assoc($kontak);
		  }
		?>
        </select>
        </label>
		-->
		<!-- Added by suwondo -->
	  <input type="hidden" name="dari" id="dari" />
	  <input type="text" name="qtxt" id="qtxt" placeholder="Cari Customer ..." size="35" readonly style="background-color:#fff;border:1px solid #999; height:16px;" onclick="NewWindow('index.php?component=kontak&&amp;task=listcustomer&amp;open=window','name','825','450','yes');return false" />
        <?php if(strstr($_SESSION['akses'],"DD-2-1")) { ?>
        <a href="index.php?component=kontak&amp;task=add&amp;ref=Customer&amp;open=window" onclick="NewWindow(this.href,'name','825','525','yes');return false"><img src="images/add_.png" hspace="2" border="0" style="position:absolute;" /></a>
        <?php } ?>
        <label id="divKontak"></label></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">Parkir Rp.:</td>
      <td bgcolor="#FFFFFF"><label id="divParkir">
        <input name="parkir" type="text" id="parkir" value="0" size="10" maxlength="10" onchange="javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right" valign="top" bgcolor="#FFFFFF">Paket Sewa *: </td>
      <td valign="top" bgcolor="#FFFFFF">
		<!-- <label>
        <select name="barang" id="barang" style="width:180px;" onchange="getListKendaraan();">
          <option value="">Pilih Paket Kendaraan</option>
          <?php
		do {  
		mysql_select_db($database_con_gl, $con_gl);
		$query_getpro = "SELECT id, barang, keterangan FROM gl_barang where kelompok='$row_kelom[id]' order by barang";
		$getpro = mysql_query($query_getpro, $con_gl) or die(mysql_error());
		$row_getpro = mysql_fetch_assoc($getpro);
		$totalRows_getpro = mysql_num_rows($getpro);
		?>
          <?php
			if($totalRows_getpro  > 0) { ?>
          <option value="" style="background:#DDDDDD;font-weight:bold;"><?php echo $row_kelom['kelompok']?></option>
          <?php do { ?>
          <option value="<?php echo $row_getpro['id']; ?>" title="<?php echo $row_getpro['keterangan']; ?>"> - <?php echo $row_getpro['barang']; ?></option>
          <?php }  while ($row_getpro = mysql_fetch_assoc($getpro)); ?>
          <?php } ?>
          <?php
		} while ($row_kelom = mysql_fetch_assoc($kelom));
		  $rows = mysql_num_rows($kelom);
		  if($rows > 0) {
			  mysql_data_seek($kelom, 0);
			  $row_kelom = mysql_fetch_assoc($kelom);
		  }
		?>
        </select>
		</label> -->
		<!-- Added by suwondo -->
	  <input type="hidden" name="barang" id="barang" />
	  <input type="text" name="txtbarang" id="txtbarang" placeholder="Cari Paket Sewa ..." size="38" readonly style="background-color:#fff;border:1px solid #999; height:16px;" onclick="NewWindow('index.php?component=barang&amp;task=list&amp;kelompok=<?php echo $row_kelom['id']; ?>&amp;open=window','name','825','450','yes');return false" />	  </td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">Jasa Supir Rp.: </td>
      <td bgcolor="#FFFFFF"><label id="divSupir">
        <input name="supir" type="text" id="supir" value="0" size="10" maxlength="10" onchange="javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right" valign="top" bgcolor="#FFFFFF">Kendaraan *: </td>
      <td valign="top" bgcolor="#FFFFFF">
	  <!--
	  <label id="divListKendaraan">
        <select name="kendaraan" id="kendaraan" style="width:180px;">
          <option value="">Pilih Kendaraan</option>
        </select>
      </label>
	  -->
	  <!-- Added by suwondo -->
	  <input type="hidden" name="kendaraan" id="kendaraan" />
	  <input type="text" name="txtkendaraan" id="txtkendaraan" placeholder="Cari Kendaraan ..." size="38" readonly style="background-color:#fff;border:1px solid #999; height:16px;" onclick="NewWindow('index.php?component=kendaraan&amp;task=list&amp;barang='+document.getElementById('barang').value+'&amp;open=window','name','825','450','yes');return false" />	  </td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">Uang Makan Rp.: </td>
      <td bgcolor="#FFFFFF"><label id="divAkomodasi">
        <input name="akomodasi" type="text" id="akomodasi" value="0" size="10" maxlength="10" onchange="javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value"/>
      </label></td>
    </tr>
    <tr>
      <td align="right" valign="top" bgcolor="#FFFFFF">Tanggal Pemakaian : </td>
      <td valign="top" bgcolor="#FFFFFF"><label>
        <input name="checkin" type="text" class="calendar" id="checkin" value="<?php echo date("Y/m/d");?>" size="15" maxlength="15"/>
      </label>
        Jam :
        <label>
    <input name="waktucheckin" type="text" class="jam" id="waktucheckin" value="<?php echo date("H:i");?>" size="5" maxlength="5"/>
</label></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">Biaya lain-lain Rp.: </td>
      <td valign="top" bgcolor="#FFFFFF"><label id="divOther">
        <input name="other" type="text" id="other" value="0" size="10" maxlength="10" onchange="javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value"/>
      </label></td>
    </tr>
    <tr>
      <td align="right" valign="top" bgcolor="#FFFFFF">Lama Sewa :</td>
      <td valign="top" bgcolor="#FFFFFF"><label>
      <input name="jumlah" type="text" id="jumlah" onkeyup="javascript: if(isNaN(this.value)){ alert('Harus Angka'); this.value='0'; }else{ kirimRequest('include/cek_tanggal.php', 'tanggal='+document.getElementById('checkin').value+'&interval='+this.value+'&type=day', 'checkout', ''); getHargaKendaraan();getBiayaBBM();getBiayaTol();getBiayaParkir();getBiayaSupir();getBiayaAkomodasi();getBiayaOther();getBiayaOprs(); }" value="1" size="3" maxlength="5" autocomplete="off" />
      </label>
        ( Jlmh Hari ) / 
        <input name="jmlhwkt" type="text" id="jmlhwkt" size="3" maxlength="2" onkeyup="javascript:if(isNaN(this.value)){alert('Harus Angka');this.value='0';}else{if(this.value>=24)this.value='24';kirimRequest('include/cek_tanggal.php','tanggal='+document.getElementById('checkin').value+'&waktu='+document.getElementById('waktucheckin').value+'&interval='+this.value+'&type=hour','checkout','');}" onkeydown="javascript:if(this.value=='0')this.value='';" onclick="javascript:this.select();" autocomplete="off" />
(Jmlh  Jam)<div id='loadingjam'></div></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <th align="right" valign="top">Total Biaya : </th>
      <td valign="top" bgcolor="#FFFFFF"><label id="divBtotal">
        <input name="biaya" type="text" id="biaya" value="0" size="10" maxlength="10" onchange="javascript:this.form.ntotal.value = (2*this.form.xntotal.value) - this.form.xntotal.value + (2*this.form.biaya.value) - this.form.biaya.value + (2*this.form.pajak.value) - this.form.pajak.value;this.form.saldohutang.value=this.form.ntotal.value-this.form.bayar.value;" onfocus="this.blur();"/>
        </label>
          <!--<label>
          <input type="checkbox" name="checkbox" id="checkbox" onclick="if(this.checked) { javascript:this.form.biaya.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value; this.form.ntotal.value = (2*this.form.supir.value) - this.form.supir.value + (2*this.form.bbm.value) - this.form.bbm.value + (2*this.form.tol.value) - this.form.tol.value + (2*this.form.parkir.value) - this.form.parkir.value + (2*this.form.akomodasi.value) - this.form.akomodasi.value + (2*this.form.other.value) - this.form.other.value + (2*this.form.hargasatuan.value) - this.form.hargasatuan.value}"/>
        </label>
        <small>Hitung Total Biaya</small>--></td>
    </tr>
    <tr>
      <td align="right" valign="top" bgcolor="#FFFFFF">Tanggal Kembali :</td>
      <td valign="top" bgcolor="#FFFFFF">
		<label>
			<input name="checkout" type="text" class="calendar" id="checkout" value="<?php echo date("Y/m/d"); ?>" size="15" maxlength="15"/>
		</label>
        Jam :
		<label>
			<input name="waktucheckout" type="text" class="jam" id="waktucheckout" value="<?php echo date("H:i");?>" size="5" maxlength="5"/>
		</label>		</td>
		<td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
		<td align="right" valign="top">PPN
		  <input name="bobot" type="text" id="bobot" value="0" size="3" maxlength="3" onkeyup="javascript:var total=document.getElementById('totalafterdiskon').value;document.getElementById('pajak').value=total*(this.value/100);document.getElementById('ntotal').value=parseFloat(document.getElementById('totalafterdiskon').value)+parseFloat(document.getElementById('pajak').value);"/>
		  % - Rp. :</td>
		<td valign="top" bgcolor="#FFFFFF"><input name="pajak" type="text" id="pajak" value="0" size="20" maxlength="100" onfocus="this.blur();"/></td>
    </tr>
	<tr>
	  <td align="right" valign="top" bgcolor="#FFFFFF">Salesman :</td>
	  <td valign="top" bgcolor="#FFFFFF"><label>
        <select name="recipient" id="recipient" style="width:250px;">
          <?php
do {  
?>
          <option value="<?php echo $row_salesmen['id'];?>" <?php if($_session[kontakid] == $row_salesmen['id']) { ?>selected="selected"<?php } ?>><?php echo $row_salesmen['nama']?></option>
          <?php
} while ($row_salesmen = mysql_fetch_assoc($salesmen));
  $rows = mysql_num_rows($salesmen);
  if($rows > 0) {
      mysql_data_seek($salesmen, 0);
	  $row_salesmen = mysql_fetch_assoc($salesmen);
  }
?>
        </select>
      </label></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
	    <th align="right" valign="top">Grand Total :</th>
	    <td valign="top"><label>
	      <input name="ntotal" type="text" id="ntotal" value="0" size="20" maxlength="10" onfocus="this.blur();"/>
	    </label>
            <input name="akunkredit" type="hidden" id="akunkredit" value="<?php echo $row_def_ak['a_piu'];?>" />
            <input name="akunbiaya" type="hidden" id="akunbiaya" value="<?php echo $row_def_ak['a_beb'];?>" />
            <input name="akunpajak" type="hidden" id="akunpajak" value="<?php echo $row_def_ak['a_paj'];?>" />
            <input name="jenis" type="hidden" id="jenis" value="7" /></td>
	</tr>
    <tr>
      <td align="right" valign="top" bgcolor="#FFFFFF">Detail Transaksi :</td>
      <td valign="top" bgcolor="#FFFFFF"><label>
        <textarea name="transaksi" cols="37" rows="2" id="transaksi"></textarea>
      </label></td>
      <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right" valign="top">Keterangan :</td>
      <td valign="top"><div id="divKeterangan">
          <textarea name="keterangan" cols="40" rows="2" id="keterangan">Transaksi Jurnal Penjualan</textarea>
          <input name="cid" type="hidden" id="cid" value=""/>
      </div></td>
    </tr>
    <tr valign="top">
      <td align="right" bgcolor="#FFFFFF">&nbsp;</td>
      <td bgcolor="#FFFFFF">&nbsp;</td>
      <td align="right">&nbsp;</td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">&nbsp;</td>
      <td bgcolor="#FFFFFF"><input name="Save" type="submit" id="Save" value="Simpan Order" />
      <input name="Cancel" type="button" id="Cancel" value="Batal" onclick="javascript:history.go(-1);"/></td>
      <td bgcolor="#FFFFFF">&nbsp;</td>
      <td colspan="2" align="center" bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
  </table>
</form>